import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import UserLoginPage from "@/pages/user/UserLoginPage.vue";
import UserRegisterPage from "@/pages/user/UserRegisterPage.vue";
import UserManagePage from "@/pages/admin/UserManagePage.vue";
import HomePage from "@/pages/HomePage.vue";
import CountdownPage from "@/pages/roompage/CountdownPage.vue";
import CommunicationPage from "@/pages/roompage/CommunicationPage.vue";
import videoParsToolPage from "@/pages/tools/videoParsToolPage.vue";
import testPageTwo from "@/pages/test/testPageTwo.vue";
import mdToolViewPage from "@/pages/tools/mdToolViewPage.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "home",
    component: HomePage,
  },
  {
    path: "/user/login",
    name: "userLogin",
    component: UserLoginPage,
  },
  {
    path: "/user/register",
    name: "userRegister",
    component: UserRegisterPage,
  },
  {
    path: "/admin/userManage",
    name: "adminUserManage",
    component: UserManagePage,
  },
  {
    path: "/tools/mdToolViewPage",
    name: "mdToolViewPage",
    component: mdToolViewPage,
  },
  {
    path: "/tools/videoParsToolPage",
    name: "videoParsToolPage",
    component: videoParsToolPage,
  },
  {
    path: "/roompage/CountdownPage",
    name: "RoompageCountdownPage",
    component: CountdownPage,
  },
  {
    path: "/roompage/CommunicationPage",
    name: "RoompageCommunicationPage",
    component: CommunicationPage,
  },
  {
    path: "/test/testPageTwo",
    name: "testTwo",
    component: testPageTwo,
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
